package sfms.model;

import java.util.Date;

public class UserLicense {

    public UserLicense() {
    }

    public UserLicense(User user, License license, Date issueDate) {
        this.user = user;
        this.license = license;
        this.issueDate = issueDate;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public License getLicense() {
        return license;
    }

    public void setLicense(License license) {
        this.license = license;
    }

    public Date getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(Date issueDate) {
        this.issueDate = issueDate;
    }

    public String getData() {
        return user.getData() + ", " + license.getData() + ", " + issueDate.toString();
    }

    private User user;
    private License license;
    private Date issueDate;
}
